package StudyCode.summary.mycollection;

import java.util.Set;

/**
 * 版权所有 科技与人文(www.tah1986.com)
 */
public class ConvertSetToArray {
	public static <T> T[] set2Array(Set<T> oSet) {
		Object[] oArray = oSet.toArray(new Object[]{});
		T[] ts = (T[]) oArray;
		return ts;
	}
}
